﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ITSM.Model.Model;

namespace ITSM.Service
{
    public interface ICompany
    {
        /// <summary>
        /// 获取状态为1（正常）的所有公司的id、编号、名称
        /// </summary>
        /// <returns></returns>
        List<RYD_Company> QueryCompany();
        /// <summary>
        /// 用户修改所在公司
        /// </summary>
        /// <param name="company">公司编号+用户编号；RYD_UserCompany：扩展Company，增加UserId列；</param>
        /// <returns></returns>
        bool SetCompany(RYD_UserCompany company);

    }
}
